/* 首页CSS样式 */
/* 版心 */
.wrapper {
    margin: 0 auto;
    width: 1200px;
}

body {
    background-color: #f3f5f7;
}





/* 头部区域 */
.header {
    height: 100px;
    background-color: #fff;
}

.header .wrapper {
    display: flex;
    padding-top: 29px;
}
 

/* logo区域 */
.header .logo a {
    /* a标签是行内，display转换成块级，
    使得画盒子成功，背景图显示完全 */
    display: block;
    width: 195px;
    height: 41px;
    background-image: url(../images/logo.png);

    font-size: 0; 
}


/* 导航区域 */
.header .nav ul {
    display: flex;
    padding-left: 102px;
}

.header .nav li {
    margin-right: 24px;
}

.header .nav a{
    display: block;
    padding:  6px 8px;
    line-height: 27px;
    font-size: 19px;

}

/* active类选择器，表示默认选中的a */
.header .nav .active,
.header .nav a:hover {
    border-bottom: 2px solid #00a4ff;
}


/* 搜索区域 */
.header .search {
    display: flex;
    margin-left: 64px ;
    padding-left: 19px;
    padding-right: 12px;

    width: 412px;
    height: 40px;
    background-color:  #f3f5f7;
    border-radius: 20px;
}

.header .search input {
    /* flex：1弹性伸缩 */
    flex: 1;
    border: 0 ;
    /* input背景颜色透明 */
    background-color: transparent;
    /* 去掉表单控件的焦点框 */
    outline: 0;
}

/* ::placeholder选中就是placecholder属性文字 */
.header .search input::placeholder {
    font-size: 14px;
    color: #999; 
}

/* 父级是flex布局，子级变弹性盒子：加宽高生效 */
.header .search a {
    align-self: center;
    width: 16px;
    height: 16px;
    background-image: url(../images/search.png);
}


/* 用户区域 */
.header .user {
    margin-left: 32px;
    margin-top: 4px;
}

.header .user img {
    margin-right: 7px;
    /* vertical-align:行内块和行内垂直方向对齐方式 */
    vertical-align: middle ;
}

.header .user span {
    font-size: 16px;
    color: #666;
}





/* banner区域 */
.banner {
    height: 420px;
    background-color: #0092cb;
}

.banner .wrapper {
    display: flex;
    justify-content: space-between;
    height: 420px;
    background-image: url(../uploads/banner.png);
}

/* 侧导航 */
.banner .left {
    padding: 3px 20px ;
    width: 191px;
    height: 420px;
    background-color: rgba(0,0, 0, 0.42);
}

.banner .left a {
    /* 块级：宽度默认是父级的100% */
    display: block;
    height: 46px;
    line-height: 46px;
    font-size: 16px;
    color: #fff;

    background: url(../images/right.png) no-repeat right center;
}

.banner .left a:hover {
    color: #00a4ff;
}



/* 右侧课程表 */
.banner .right {
    margin-top: 60px;
    margin-bottom: 56px;

    width: 218px;
    height: 305px;
    background-color: #209dd5;
    color: #fff;
    border-radius: 10px;
}

/* 我的课程表 */
.banner .right h3 {
    padding-top: 14px;
    padding-bottom: 9px;
    padding-left: 14px;

    height: 48px;
    font-size: 15px;
    font-weight: 400;
    line-height: 20px;
}

.banner .right .context {
    padding: 14px;
    height: 257px;
    background-color: #fff;
    border-radius: 10px;

    color: #333; 
}

.banner .right .context dl {
    margin-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.banner .right .context dt {
    padding-bottom: 8px;
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
}

.banner .right .context dd {
    padding-bottom: 8px;
    font-size: 12px;
    line-height: 16px;

}

.banner .right .context span {
    color: #00a4ff;
}

.banner .right .context strong {
        font-weight: 400;
        color: #7d7d7d;
}

.banner .right .context a {
    display: block;
    height: 32px;
    background-color: #00a4ff;
    border-radius: 15px;

    font-size: 14px;
    color: #fff;

    text-align: center;
    line-height: 32px;

}





/* 精品推荐 */
.recommed {
    display: flex;
    margin-top: 12px;
    padding: 0 20px;
    height: 60px;
    box-shadow: 0px 1px 2px 0px rgba(211, 211, 211, 0.5);

    background-color: #fff;
    line-height: 60px;
}

.recommed ul {
    /* 除去标题和修改兴趣的尺寸，父级剩余尺寸都给ul,
    实现把修改兴趣挤压到最右侧 */
    flex: 1;
    display: flex;
}

.recommed h3 {
    font-size: 18px;
    color: #00a4ff;
    font-weight: 400;
}

.recommed  ul  li a {
    padding: 0 24px;
    border-right: solid 1px #e0e0e0;

    font-size: 18px;
}

.recommed ul li:last-child a {
    border-right: 0;
}

.recommed .modify {
    font-size: 16px;
    color: #00a4ff;
}

/* 鼠标悬停状态 */
.recommed  ul  li a:hover {
    color: #00a4ff;
    border-bottom: 2px solid #00a4ff;
}





/* 精品课程 */
.course {
   margin-top: 15px;
}


/* 标题-公共类，与其他区域共用 */
.hd {
    display: flex;
    justify-content: space-between;
    height: 60px;
    line-height: 60px;
}

.hd h3 {
    font-size: 21px;
    font-weight: 400;
}

.hd .more {
    padding-right: 20px;
    font-size: 14px;
    color: #999;
    background: url(../images/more.png) no-repeat right center;
}


/* 课程内容-公共类 */
.bd ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;

}

.bd li {
    margin-bottom: 14px;
    width: 228px;
    height: 271px;
    background-color: pink;
}

.bd li .pic {
    height: 156px;
}

.bd li .text {
    padding: 20px;
    height: 115px;
    background-color: #fff;
}

.bd li .text h4 {
    margin-bottom: 16px;
    height: 40px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
}

.bd li .text p {
    font-size: 14px;
    line-height: 20px;
    color: #999;
}

.bd li .text p span {
    color: #fa6400;
}

.bd li .text p i {
    font-style: normal;
}

.bd li .text h4:hover {
    color: #00a4ff;
}





/* 前端开发 */
/* 标题 */
.hd ul {
    display: flex;
}

.hd ul li {
    margin-right: 60px;
    font-size: 16px;
}

.hd ul li .active {
    color: #00a4ff;
}

.hd ul li a:hover{
     color: #00a4ff;
}

/* 内容 */
.bd {
    display: flex;
    justify-content: space-between;
}

.bd .left {
    width: 228px;
    /* background-color: pink; */
}

.bd .right {
    width: 957px;
    /* background-color: pink; */
}





